﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XEvents.Library
{
    public class EventSessionEventCollection : List<EventSessionEvent>
    {
        public EventSessionEventCollection(IEnumerable<EventSessionEvent> ese)
            : base(ese)
        { }

        public EventSessionEventCollection()
        { }

        public EventSessionEvent this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }
    }
}
